% creates synapse for given parameters and returns synapse object
function obj = loadSynapse(weight, definedRechargingTime, remainingTime, inputNeuronId, inputNeuronLayer, outputNeuronId, outputNeuronLayer, active, belongsToMemory, memoryThreshold, deathThreshold, epochsWithoutUse)
    obj.weight = weight;
    obj.definedRechargingTime = definedRechargingTime;
    obj.remainingTime = remainingTime;
    obj.active = active;
    obj.inputNeuronId = inputNeuronId;
    obj.inputNeuronLayer = inputNeuronLayer;
    obj.outputNeuronId = outputNeuronId;
    obj.outputNeuronLayer = outputNeuronLayer;
    obj.belongsToMemory = belongsToMemory;
    obj.memoryThreshold = memoryThreshold;
    obj.deathThreshold = deathThreshold;
    obj.epochsWithoutUse = epochsWithoutUse;
end

